package com.baby.work.domain.operator;

import com.baby.work.dto.ChargeInfo;
import org.springframework.stereotype.Component;

public class TelecomOperator implements IOperator{
    private int changeMin = 2;
    private int changeFlow = 15;
    private int changeTotal;

    @Override
    public ChargeInfo charge(int min, int flow) {
        ChargeInfo chargeInfo = new ChargeInfo();
        chargeInfo.setCharge(changeMin * min + changeFlow * flow);
        chargeInfo.setCompany("Telecom");
        return chargeInfo;
    }

    public int getChangeTotal() {
        return changeTotal;
    }

    public void setChangeTotal(int changeTotal) {
        this.changeTotal = changeTotal;
    }
}
